// 职位名搜索
const jobInp=$('#search>div:nth-child(2) input');
let job='';
// 行业搜索
const indSeltop=$('#search>div:nth-child(3) select');
let industrytop='';
// 工作经验搜索
const jobyearSel=$('#shaixuan>div:first-child select');
let jobyear='';
// 行业搜索
const indSelsmall=$('shaixuan>div:nth-child(2) select');
let industrysmall='';
// 薪资范围
let money=0;
// 最低薪资
const minmoneyInp=$('shaixuan>div:nth-child(3)>div:first-child input');
let minmoney=0;
// 最高薪资
const maxmoneyInp=$('shaixuan>div:nth-child(3)>div:last-child input');
let maxmoney=0;
// 学历要求
const edurequireSel=$('shaixuan>div:nth-child(4) select');
let edurequire='';
// 公司规模
const sizeSel=$('shaixuan>div:nth-child(5) select');
let size='';


// 渲染行业下拉列表
// 从后台获取行业表的数据
$.ajax({
    url:'/selectInd',
    method:'post',
    success:(res)=>{
        res.industry.forEach(item=>{
            industrySel.append(`<option>${item.ind_name}</option>`);
            industrySel.children().eq(2).css({
                display:'none'
            });
        });
    }
});




























// 点击职位跳转到公司简介
$('.zhiwei').on('click',function(){
    location.href='../html/gongsijianjie.html';
})